/**
 * User: sunny
 * Date: 15-5-28
 * Time: 下午5:03
 */
var testhttp = require('../testhttp');
var count = 0;
var keepAliveAgent = require('../Agent.js'); 
var agent = new keepAliveAgent({ maxSockets: 5 }); 
for(var i= 0;i<1000;i++) {
	setTimeout(function(){
		testhttp.get('http://www.baidu.com',{},function(err,body) {
			console.log(count++, err);
		},agent);
	},100*i);
    
}
